function foo(x){
    return bar(x)
}

function bar(y){
    return y+1;
}

foo(1)